package ae.pcfc.cldos.online.common.clddb.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.envers.Audited;

import ae.pcfc.cldos.online.common.domain.BaseEntity;


/**
 * The persistent class for the T_CLDOS_FNP_SERVICE_MASTER database table.
 * 
 */
@Entity
@Table(name="T_CLDOS_FNP_SERVICE_MASTER")
@Audited
@SequenceGenerator(name = "SQ_CLDOS_FNPSMASTER_FNPSERVID", sequenceName = "SQ_CLDOS_FNPSMASTER_FNPSERVID", initialValue = 1, allocationSize = 1)
public class FnpServiceMaster extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	// Fields
	public static final String __FNP_SERVICE_CODE = "serviceCode";
	public static final String __FNP_SERVICE_ID = "serviceId";
	
	public static final String __FNP_CODE = "fnpCode";

	@Id
	@GeneratedValue( strategy = GenerationType.SEQUENCE, generator="SQ_CLDOS_FNPSMASTER_FNPSERVID")
	@Column(name="FNP_ID")
	private long fnpId;

	@Column(name="FNP_CODE")
	private String fnpCode;
	
	@Column(name="SERVICE_CODE")
	private Long serviceCode;
	
	@Column(name="SERVICE_DESC")
	private String serviceDesc;
	
	@Column(name="SERVICE_ID")
	private String serviceId;

	//bi-directional many-to-one association to ServiceMaster
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="SERVICE_CODE", insertable=false, updatable=false)
	private ServiceMaster ServiceMaster;

    public FnpServiceMaster() {
    }

	public long getFnpId() {
		return this.fnpId;
	}

	public void setFnpId(long fnpId) {
		this.fnpId = fnpId;
	}

	public String getFnpCode() {
		return this.fnpCode;
	}

	public void setFnpCode(String fnpCode) {
		this.fnpCode = fnpCode;
	}

	public ServiceMaster getServiceMaster() {
		return this.ServiceMaster;
	}

	public void setServiceMaster(ServiceMaster ServiceMaster) {
		this.ServiceMaster = ServiceMaster;
	}
	
	public void setServiceCode(Long serviceCode) {
		this.serviceCode = serviceCode;
	}
	public Long getServiceCode() {
		return serviceCode;
	}

	public String getServiceDesc() {
		return serviceDesc;
	}

	public void setServiceDesc(String serviceDesc) {
		this.serviceDesc = serviceDesc;
	}

	public String getServiceId() {
		return serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	
	
	
}